#define _CRT_SECURE_NO_WARNINGS 1


#include<vector>
#include<algorithm>
#include<iostream>

using namespace std;

vector<int> GetLeastNumbers_Solution(vector<int>& input, int k)
{
    vector<int> v1;
    sort(input.begin(), input.end());
    for (size_t i = 0; i < k; i++)
    {
        v1.push_back(input[i]);
    }
    return v1;
}